import Vue from 'vue';
import Antd from 'ant-design-vue';
import ElementUI from 'element-ui';
import 'ant-design-vue/dist/antd.css';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue';
Vue.use(Antd);
Vue.use(ElementUI);
// 引入路由
import router from '@/router';
import store from '@/store';
import * as API from '@/api';
// 引入mockServejs--mock数据
import '@/mock/mockServe';
import TypeNav from '@/components/TypeNav';
Vue.component(TypeNav.name, TypeNav);
Vue.config.productionTip = false

new Vue({
    render: h => h(App),
    //全局事件总线$bus配置
    beforeCreate() {
        Vue.prototype.$bus = this;
        Vue.prototype.$API = API;
    },
    // 注册路由
    router,
    store
}).$mount('#App')